package edu.drexel.jrexel2d.animation;

import java.util.HashMap;

import org.newdawn.slick.opengl.Texture;

public class Sprite {

	private HashMap<String, SpriteSheet> sheetMap ;
	private String shape ;
	private String name ;
	
	public Sprite(String name, String shape) {
		this.shape = shape ;
		this.name = name ;
		sheetMap = new HashMap<String, SpriteSheet>() ;
	}
	
	public Texture getTex(String pose) {
		return sheetMap.get(pose).getTex() ;
	}
	
	public String getShape() {
		return shape ;
	}
	
	public void addSheet(SpriteSheet s) {
		sheetMap.put(s.getName(),  s) ;
	}
	
	public String getName() {
		return name ;
	}
	
	public SpriteSheet getSheet(String name) {
		return sheetMap.get(name) ;
	}

}
